import request from '@/utils/request'

// 查询首页视频列表
export function listContentSetting(query) {
  return request({
    url: '/contentSetting/pageList',
    method: 'get',
    params: query
  })
}

// 新增首页视频
export function addContentSetting(data) {
  return request({
    url: '/contentSetting',
    method: 'post',
    data: data
  })
}

// 修改首页视频
export function updateContentSetting(data, id) {
  return request({
    url: `/contentSetting/${id}`,
    method: 'put',
    data: data
  })
}
